﻿using Amarok.Agents;
using Microsoft.Practices.Unity;


namespace Amarok.Samples
{
	/// <summary>
	/// </summary>
	[MessageBusConnected]
	public abstract class MyAgentBase<TOptions> : Agent<MyEnvironment, TOptions>
		where TOptions : AgentOptions
	{
		/// <summary>
		/// </summary>
		public IUnityContainer Container
		{
			get
			{
				return base.Environment.Container;
			}
		}


		/// <summary>
		/// </summary>
		protected MyAgentBase(MyEnvironment environment, TOptions options)
			: base(environment, options)
		{
			base.Environment.Container.BuildUp(
				this.GetType(),
				this);
		}

	}
}
